package com.svse.designPattern.behaviour.visitor.impl;

import com.svse.designPattern.behaviour.visitor.service.Visitor;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/9 9:51
 */
public class ConcreteVisitorA implements Visitor {
    @Override
    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者A访问-->"+element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者A访问-->"+element.operationB());
    }
}
